package com.ByteDance.service;

import com.ByteDance.model.po.Message;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 聊天记录表 服务类
 * </p>
 *
 * @author 朱哥
 * @since 2024-03-06
 */
public interface IMessageService extends IService<Message> {

    Message sendMsg(int fromUserId, Integer toUserId, Integer actionType, String content);

    List<Message> getMsgList(int fromUserId, Integer toUserId, String preMsgTime);
}
